package com.itheima.constructor;

public class Test1 {

    public static void main(String[] args) {

        /*Student s1 = new Student();
        Student s2 = new Student("张三");
        Student s3 = new Student(18);*/

        //无有参构造器时
        /*Student s4 = new Student();
        s4.age = 20;
        s4.name = "李四";
        s4.gender = "男";*/

        //有有参构造器时
        Student s4 = new Student(20, "李四", "男");
    }
}
